import { createStore } from 'vuex'

// 导入模块
import auth from './modules/auth.js'
import appointment from './modules/appointment.js'
import alerts from './modules/alerts.js'
import location from './modules/location.js'
import drugs from './modules/drugs.js'
import navigation from './modules/navigation.js'
import services from './modules/services.js'
import app from './modules/app.js'

// 模块化状态管理
const store = createStore({
  modules: {
    auth,
    appointment,
    alerts,
    location,
    drugs,
    navigation,
    services,
    app
  }
})

export default store